package com.ssrs.batch.core.factory;

import org.springframework.batch.item.file.ResourceSuffixCreator;

/**
 * 文件后缀处理
 *
 * @author ssrs
 */
public class OpenResourceSuffixCreator implements ResourceSuffixCreator {
    private String suffix;

    public OpenResourceSuffixCreator(String suffix) {
        super();
        this.suffix = suffix;
    }

    @Override
    public String getSuffix(int i) {
        return i + "." + suffix;
    }
}
